package com.gitee.swsk33.jgitdemo;

import com.gitee.swsk33.jgitdemo.util.GitRepositoryUtils;
import org.eclipse.jgit.revwalk.RevCommit;

import java.util.List;

public class Main {

	private static String repoPath = "E:\\中转\\backend-note.git";

	public static void main(String[] args) throws Exception {
		List<RevCommit> commits = GitRepositoryUtils.getAllCommits(repoPath);
		for (RevCommit commit : commits) {
			System.out.println(commit.getCommitTime());
		}
	}

}